<?php

	require_once(realpath(dirname(__FILE__)) . "/Baseobj.class.php");

	class Autorisation extends Baseobj{

		var $id;
		var $nom;
		var $type;

		const TABLE="autorisation";
		var $table=self::TABLE;


		var $bddvars = array("id", "nom", "type");

		function __construct(){
			parent::__construct();
		}

		function charger($nom){
			return $this->getVars("select * from $this->table where nom=\"$nom\"");
		}

		function charger_id($id){
			return $this->getVars("select * from $this->table where id=\"$id\"");
		}

	}


?>